Skip to main content
POST
/
settings
/
tls
Update TLS configuration
curl --request POST \
  --url https://your_a2_service/settings/tls \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'domain=<string>' \
  --form mode=http
{
  "access_token": {
    "access_token": "<string>",
    "token_type": "Bearer"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "currency": "usd",
  "external_channel_url": "<string>",
  "language": "en",
  "tls_domain": "<string>",
  "tls_enable": true,
  "updated_at": "2023-11-07T05:31:56Z",
  "yield_optimization": {
    "ceiling_cpm": 123,
    "floor_cpm": 123,
    "yield_roas_balance": 0.5
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

multipart/form-data
domain
string
required

TLS domain name.

files
file[]
required

When mode is set to HTTPS, you must provide two files: the first file should be the SSL certificate and the second file should be the private key.

mode
enum<string>
required

TLS Mode: http, https

Available options:
http,
https

Response

Successful Response

Schema for Setting

access_token
object | null
required

Access token info

currency
string
required

Currency code for the system. It is used for the budget management.

Examples:

"usd"

"krw"

external_channel_url
string | null
required

External channel URL which will be used on budget management.

language
string
required

Language code for the system.

Examples:

"en"

"ko"

tls_domain
string | null
required

TLS domain name.

tls_enable
boolean
required

Whether TLS is enabled.

yield_optimization
object | null
required

Yield optimization settings

created_at
string<date-time> | null

The date and time the entity was created.

updated_at
string<date-time> | null

The date and time the entity was last updated.